All Series names
This script returns all the names for Series.
Returns: [String]
- A list of existing Serie names.
import UFC_NFT from 0xUFCNFTADDRESS
pub fun main(): [String] {
let series = UFC_NFT.getAllSeries()
let seriesNames: [String] = []
for element in series {
seriesNames.append(element.getMetadata()["seriesName"]!)
}
return seriesNames
}